package com.wx.business.course.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import com.eachonline.mapper.GenericMapper;
import com.eachonline.service.GenericServiceImpl;
import com.wx.business.course.IxbBusinessPictureService;
import com.wx.business.course.IxbCourseShareService;
import com.wx.dao.mapper.IxbCourseShareMapper;
import com.wx.model.IxbCourseShare;
import com.wx.model.IxbCourseShareExample;
@Service("ixbCourseShareService")
public class IxbCourseShareServiceImpl extends GenericServiceImpl<IxbCourseShare, IxbCourseShareExample, String> implements IxbCourseShareService  {

	private static final  Logger logger =Logger.getLogger(IxbBusinessPictureService.class);

	@Resource
	private IxbCourseShareMapper ixbCourseShareMapper;
	
	@Override
	protected GenericMapper<IxbCourseShare, IxbCourseShareExample, String> getGenericMapper() {
		return ixbCourseShareMapper;
	}

	@Override
	public List<Map<String, Object>> selectMyShareCourseList(String userId) {
		// TODO Auto-generated method stub
		return ixbCourseShareMapper.selectMyShareCourse(userId);
	}

	@Override
	public Map<String, Object> selectMyShareStatistics(String userId) {
		// TODO Auto-generated method stub
		return ixbCourseShareMapper.queryMyShareStatistics(userId);
	}

	
}
